﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WhatSNew.Master" AutoEventWireup="true" CodeBehind="Personal.aspx.cs" Inherits="WhatSNew.User.Personal" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../jquery.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery("#manage li").mouseover(function () {
                jQuery("ul #manage li:gt(0)").show(100);
            });
            jQuery("#manage").mouseleave(function () {
                jQuery("ul #manage li:gt(0)").hide(100);
            });
            jQuery("#userinfo li").mouseover(function () {
                jQuery("ul #userinfo li:gt(0)").show(100);
            });
            jQuery("#userinfo").mouseleave(function () {
                jQuery("ul #userinfo li:gt(0)").hide(100);
            });
        }
        )
    </script>
</asp:Content>

<asp:Content ID="Nav" ContentPlaceHolderID ="ContentPlaceHolderNav" runat ="server">
    <div class="menu_header">
    <div class="menu_nav">
        <ul>
          <li><a >最新</a></li>
          <li><a >热门</a></li>
          <li><a href="../submission.aspx">投稿</a></li>
          <li>
              <ul style ="clear:both; position:relative;z-index:1000;" id = "userinfo">
                  <li style ="clear:both; width: 100px;"><span class = "navlink">我的账号</span></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "../User/Personal.aspx" style ="font-size: 14px;padding:10px;">个人信息</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style ="font-size: 14px;padding:10px;">新鲜事</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style ="font-size: 14px;padding:10px;">评论</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style ="font-size: 14px;padding:10px;">关注</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style ="font-size: 14px;padding:10px;">私信</a></li>
              </ul>
          </li>
          <li >
              <ul style ="clear:both;position:relative;z-index:1000;" id = "manage" >
                  <li style ="clear:both; width: 100px;"><span class = "navlink">管理</span></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "../Manage/NewsManage.aspx" style="font-size: 14px;padding:10px;">新鲜事管理</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "../Manage/UserManage.aspx" style="font-size: 14px;padding:10px;">用户管理</a></li>
              </ul>
          </li>
        </ul>
          <div style ="float:right; text-align:right;">
              <div class ="item" style ="float:left;margin: 5px 5px">            
                      <asp:Button ID="BTN_Login" runat="server" BorderStyle="None" Text="登陆" 
                          Height="30px" style ="margin: 9px 5px 5px; 
                           border-radius: 3px 3px" CssClass="btn-submit"/>
                      <asp:Button ID="BTN_Register" runat="server" BorderStyle="None" Text="注册"
                          Height="30px" style ="margin: 9px 5px 5px;
                           border-radius: 3px 3px"  CssClass="btn-submit" OnClick="BTN_Register_Click" />
              </div>
          </div>      
    </div>
    </div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content_resize">
        <div class = "rs_left" style ="width: 470px; border-right:1px solid #d9d9d9">
        <div>
            <h3>个人信息管理<asp:RegularExpressionValidator ID="REV_Email" runat="server" ControlToValidate="TB_Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Width="20px"></asp:RegularExpressionValidator>
                <asp:Label ID="LB_PInfo" runat="server" CssClass="_label"></asp:Label>
            </h3>
            <div class ="item">  
                <div class ="itemLeft">
                    <asp:Label ID="LB_Name" runat="server" CssClass="_label" Text="用户名" Width="42px"></asp:Label>
                    <asp:TextBox ID="TB_Name" runat="server" CssClass="small-input"></asp:TextBox>
                </div>
                <div class ="clr"></div>          
            </div>
            <!--
            <div class ="item"> 
                <div class ="itemLeft">
                <asp:Label ID="LB_Pwd" runat="server" CssClass="_label" Text="密码" Width="42px"></asp:Label>
                <asp:TextBox ID="TB_Pwd" runat="server" CssClass="small-input"></asp:TextBox>
                </div>
                <div class ="clr"></div>
            </div>
            -->
            <div class ="item"> 
                <div class ="itemLeft">
                    <asp:Label ID="LB_Email" runat="server" CssClass="_label" Text="邮箱" Width="42px"></asp:Label>
                    <asp:TextBox ID="TB_Email" runat="server" CssClass="small-input"></asp:TextBox>
                </div>                
                <asp:DropDownList ID="DDL_EmailPriv" runat="server" Height="25px" CssClass="drop-list">
                    <asp:ListItem>所有人可见</asp:ListItem>
                    <asp:ListItem>注册可见</asp:ListItem>
                    <asp:ListItem>关注可见</asp:ListItem>
                    <asp:ListItem>仅自己可见</asp:ListItem>
                </asp:DropDownList>
                <div class ="clr"></div>
            </div>
            <div class ="item"> 
                <div class ="itemLeft">
                <asp:Label ID="LB_Birthday" runat="server" CssClass="_label" Text="生日" Width="42px"></asp:Label>
                <asp:TextBox ID="TB_Year" runat="server" CssClass="small-input" Width="38px" style ="margin-right: 0"></asp:TextBox>
                <asp:Label ID="LB_Year" runat="server" CssClass="no-maigin-label" Text="年"></asp:Label>
                <asp:TextBox ID="TB_Month" runat="server" CssClass="small-input" Width="36px" style ="margin-right: 0"></asp:TextBox>
                <asp:Label ID="LB_Month" runat="server" CssClass="no-maigin-label" Text="月" Width="16px"></asp:Label>
                <asp:TextBox ID="TB_Day" runat="server" CssClass="small-input" Width="36px" style ="margin-right: 0"></asp:TextBox>
                <asp:Label ID="LB_Day" runat="server" CssClass="no-maigin-label" Text="日"></asp:Label>
                </div>                   
                <asp:DropDownList ID="DDL_BirthdayPriv" runat="server" Height="25px" CssClass="drop-list">
                    <asp:ListItem>所有人可见</asp:ListItem>
                    <asp:ListItem>注册可见</asp:ListItem>
                    <asp:ListItem>关注可见</asp:ListItem>
                    <asp:ListItem>仅自己可见</asp:ListItem>
                </asp:DropDownList>
                <div class ="clr"></div>
            </div>
            <div class ="item">
                <div class ="itemLeft">
                <asp:Label ID="LB_Gender" runat="server" CssClass="_label" Text="性别" Width="42px"></asp:Label>
                <asp:RadioButton ID="RB_Male" runat="server" GroupName="Gender" />
                <asp:Label ID="LB_Male" runat="server" CssClass="_label" Text="男"></asp:Label>
                <asp:RadioButton ID="RB_Female" runat="server" GroupName="Gender" />
                <asp:Label ID="LB_Female" runat="server" CssClass="_label" Text="女"></asp:Label>
                </div>                   
                <asp:DropDownList ID="DDL_GenderPriv" runat="server" Height="25px" CssClass="drop-list">
                    <asp:ListItem>所有人可见</asp:ListItem>
                    <asp:ListItem>注册可见</asp:ListItem>
                    <asp:ListItem>关注可见</asp:ListItem>
                    <asp:ListItem>仅自己可见</asp:ListItem>
                </asp:DropDownList>
                <div class ="clr"></div>
            </div>
            <div class ="item">  
                <div class ="itemLeft">
                <asp:Label ID="LB_SexOrie" runat="server" CssClass="_label" Text="性取向" Width="42px"></asp:Label>
                <asp:RadioButton ID="RB_SMale" runat="server" GroupName="SexOrie" />
                <asp:Label ID="LB_Man" runat="server" CssClass="_label" Text="男"></asp:Label>
                <asp:RadioButton ID="RB_SFemale" runat="server" GroupName="SexOrie" />
                <asp:Label ID="LB_Woman" runat="server" CssClass="_label" Text="女"></asp:Label>
                </div>   
                
                <asp:DropDownList ID="DDL_SexOriePriv" runat="server" Height="25px" CssClass="drop-list">
                    <asp:ListItem>所有人可见</asp:ListItem>
                    <asp:ListItem>注册可见</asp:ListItem>
                    <asp:ListItem>关注可见</asp:ListItem>
                    <asp:ListItem>仅自己可见</asp:ListItem>
                </asp:DropDownList>
                <div class ="clr"></div>
            </div>
            <div class ="item">
                <div class ="itemLeft">
                 <asp:Label ID="地址" runat="server" CssClass="_label" Text="地址" Width="42px"></asp:Label>
                <asp:TextBox ID="TB_Address" runat="server" CssClass="small-input"></asp:TextBox>
                </div>                    
                <asp:DropDownList ID="DDL_AddrPriv" runat="server" Height="25px" CssClass="drop-list">
                    <asp:ListItem>所有人可见</asp:ListItem>
                    <asp:ListItem>注册可见</asp:ListItem>
                    <asp:ListItem>关注可见</asp:ListItem>
                    <asp:ListItem>仅自己可见</asp:ListItem>
                </asp:DropDownList>
                <div class ="clr"></div>
            </div>
            <div class ="item">
                <div class ="itemLeft">
                <asp:Label ID="简介" runat="server" CssClass="_label" Text="简介" Width="42px"></asp:Label>
                <asp:TextBox ID="TB_Intro" runat="server" CssClass="small-input"></asp:TextBox>
                </div>   
                <div class ="clr"></div>        
            </div>
            <div class ="item">     
                <asp:Label ID="Label1" runat="server" CssClass="_label" Width="42px"></asp:Label>
                <asp:Button ID="BTN_Update" runat="server" CssClass="btn-submit" Text="修改个人信息" OnClick="BTN_Update_Click" />
            </div>
            <div class ="item">     
               
                &nbsp;</div>
        </div>
        </div>
        <div class = "rs_right" style ="width: 488px;">
            <h3>密码修改<asp:Label ID="Label4" runat="server" CssClass="_label"></asp:Label>
                <asp:Label ID="LB_RPInfo" runat="server" CssClass="_label"></asp:Label>
            </h3>
            <div class ="item" style ="padding-right:0px;">                
                <div class ="item" style ="margin-right: 0px;padding-right:0px;">
                    <asp:Label ID="LB_OriPwd" runat="server" CssClass="_label" Text="原密码" Width="70px"></asp:Label>
                    <asp:TextBox ID="TB_OriPwd" runat="server" CssClass="small-input" TextMode="Password"></asp:TextBox>
                <asp:Label ID="LB_OriPwdInfo" runat="server" CssClass="_label" style ="margin-right: 0px;padding-right:0px; 
                    padding-left: 30px;" Text="请输入原密码"></asp:Label>
                </div>
                <div class ="item" style ="padding-right:0px;">
                    <asp:Label ID="LB_NewPwd" runat="server" CssClass="_label" Text="新密码" Width="70px"></asp:Label>
                    <asp:TextBox ID="TB_NewPwd" runat="server" CssClass="small-input" TextMode="Password"></asp:TextBox>
                <asp:Label ID="LB_NewPwdInfo" runat="server" CssClass="_label" style ="margin-right: 0px;padding-right:0px;
                    padding-left: 30px;" Text="请输入新密码"></asp:Label>
                </div>
                <div class ="item" style ="padding-right:0px;">
                    <asp:Label ID="LB_RenewPwd" runat="server" CssClass="_label" Text="确认新密码" Width="70px"></asp:Label>
                    <asp:TextBox ID="TB_NewPwd2" runat="server" CssClass="small-input" TextMode="Password"></asp:TextBox>
                <asp:Label ID="LB_ReNewPwdInfo" runat="server" CssClass="_label" style ="margin-right: 0px;padding-right:0px;
                padding-left: 30px;" Text="请确认新密码"></asp:Label>
                </div>
                <div class ="item">
                    <asp:Label ID="Label3" runat="server" CssClass="_label" Width="70px"></asp:Label>
                    <asp:Button ID="BTN_PwdUpdate" runat="server" CssClass="btn-submit" Text="修改密码" OnClick="BTN_PwdUpdate_Click"/>
                </div>
            </div>
        </div>
        <div class ="clr"></div>    
   </div>
</asp:Content>
